/**
 * 鐐瑰嚮鏁拌幏鍙�
 * jinxinqiao_pushheat.start(); 鏇存柊鏁翠釜椤甸潰鐨勭偣鍑绘暟
 */
var jinxinqiao_pushheat={
    'start':function(){
        this.jinxinqiao_ins=document.getElementsByTagName('ins');
        this.jinxinqiao_source=[];
        for(var i=0;i<this.jinxinqiao_ins.length;i++){
            if(this.jinxinqiao_ins[i].getAttribute('js_heatid')&&this.jinxinqiao_ins[i].getAttribute('js_heattype')){
                var jinxinqiao_str=this.jinxinqiao_ins[i].getAttribute('js_heatid')+'_'+this.jinxinqiao_ins[i].getAttribute('js_heattype');
                this.jinxinqiao_source.push(jinxinqiao_str);
            }
        }
        this.ajax(this.jinxinqiao_source,this.success);
    },
    'is_pathinfo':function(url,arg){
        var reg=/.+\?/i;
        if(reg.test(url)){
            url=url+'&'+arg;
        }else{
            url=url+'?'+arg;
        }
        return url;
    },
    'ajax':function(source,su){
        source=source.join(',');
        local=this.is_pathinfo(echoAddjs,'source='+source+'&T='+Math.random());
        var XHR=null;
        if(window.XMLHttpRequest){
            XHR=new XMLHttpRequest();
        }else{
            XHR=new ActiveXObject('Microsoft.XMLHTTP');
        }
        XHR.open('GET',local,true);
        XHR.send();
        XHR.onreadystatechange=function(){
            if(XHR.readyState==4){
                if (XHR.status == 200){
                    su(XHR.responseText);
                }else{
                    return false;
                }
            }
        }
    },
    'success':function(data){
        data=eval('('+data+')');
        var jinxinqiao_ins=document.getElementsByTagName('ins');
        for(var i=0;i<jinxinqiao_ins.length;i++){
            if(jinxinqiao_ins[i].getAttribute('js_heatid')&&jinxinqiao_ins[i].getAttribute('js_heattype')){
                var jinxinqiao_str=jinxinqiao_ins[i].getAttribute('js_heatid')+'_'+jinxinqiao_ins[i].getAttribute('js_heattype');
                if(data[jinxinqiao_str]){
                    jinxinqiao_ins[i].innerHTML=data[jinxinqiao_str];
                }
            }
        }
    }
}
jinxinqiao_pushheat.start();

/**
 *鍖呭悕绉帮細jxq_ajax_json
 *鍙戦€佽姹傜殑浣跨敤鏍峰紡
 *jxq_ajax_json.jxq_ajax({
        'getValue':{ 瑕佺粰鏈嶅姟鍣ㄤ紶閫掔殑get鍙傛暟 json鏍煎紡},
        'postValue':{ 瑕佺粰鏈嶅姟鍣ㄤ紶閫掔殑post鍙傛暟 json鏍煎紡},
        'tagName':鏍囩鍚嶇О string鏍煎紡',
        'tagAttr':{ 鏍囩涓渶瑕佷紶閫掔殑鍙傛暟 json鏍煎紡},
        'content':鏍囩寰幆鐨勫唴瀹� string鏍煎紡'
    },function(){
        鎴愬姛鍑芥暟
    },function(){
        澶辫触鍑芥暟
 *});
 *瀹炰緥锛�
 *jxq_ajax_json.jxq_ajax({
        'getValue':{ 'page':1 },
        'tagName':'Newl',
        'tagAttr':{ 'number':10 },
        'content':'{"href":"{閾炬帴}","title":"{鍦板尯}{鏍囬}"},'
    },function(data){
        data=jxq_ajax_json.json_encode('['+data+']');
        alert(data);
 *});
 *
 *鍙戦€佽姹� 鍑芥暟 鏃犺繑鍥� jxq_ajax_json.jxq_ajax锛坖son 绫诲瀷,function,function锛�
 *json鏍煎紡鍖� 鍑芥暟 杩斿洖json瀵硅薄 jxq_ajax_json.json_encode锛坰tring 绫诲瀷锛�
 *濡傛灉鏈夌偣鍑绘暟鏃舵彃鍏ユ暟鎹悗璇疯皟鐢ㄨ鍑芥暟 jinxinqiao_pushheat.start();鏇存柊鐐瑰嚮鏁�
 *缈婚〉鍙橀噺鏄厤缃〉涓殑 PAGE_VAR 椤圭殑鍙傛暟榛樿鏄� page
 */
try{
    var jxq_ajax_json={
        'sendHerf':jxq_ajax_conf.sendHerf,
        'jxq_ajax':function(postValue,SuccessFn,errorFn){
            var ther_href=this.sendHerf;
            var reg=/.+\?/i;
            if(reg.test(ther_href)){
                ther_href=ther_href+'&T='+Math.random();
            }else{
                ther_href=ther_href+'?T='+Math.random();
            }
            var XHR=null;
            if(window.XMLHttpRequest){
                XHR=new XMLHttpRequest();
            }else{
                XHR=new ActiveXObject('Microsoft.XMLHTTP');
            }
            this.submitValue(postValue);
            var postString=this.postFormat(postValue);
            XHR.open( 'POST', ther_href, true);
            XHR.setRequestHeader("Content-type","application/x-www-form-urlencoded");
            XHR.send(postString);
            XHR.onreadystatechange=function(){
                if(XHR.readyState==4){
                    if (XHR.status == 200){
                        SuccessFn(XHR.responseText);
                    }else{
                        if(errorFn){ errorFn(); };
                    }
                }
            }
        },
        'submitValue':function(postValue){
            var get_value=jxq_ajax_conf.submitValue['getValue'];
            var post_value=jxq_ajax_conf.submitValue['postValue'];
            if(postValue['getValue']){
                var user_get_v=postValue['getValue'];
                for(var getAt in user_get_v){
                    get_value[getAt]=user_get_v[getAt];
                }
            }
            if(postValue['postValue']){
                var user_post_v=postValue['postValue'];
                for(var postAt in user_post_v){
                    post_value[postAt]=user_post_v[postAt];
                }
            }
            postValue['getValue']=get_value;
            postValue['postValue']=post_value;
        },
        'postFormat':function(postValue){
            var postStr='';
            for(var at in postValue){
                if(at=='getValue'||at=='postValue'||at=='tagAttr'){
                    for(var att in postValue[at]){
                        postStr=postStr+'&'+at+'['+att+']='+postValue[at][att];
                    }
                }else{
                    postStr=postStr+'&'+at+'='+postValue[at];
                }
            }
            return postStr;
        },
        'json_encode':function(str){
            return (new Function('return '+str))();
        }
    };
}catch(er){}